package com.xyh.transaction.common;

import java.util.Arrays;
import java.util.List;

public class Constant {


    public static final String ILLEGAL_TOKEN_DETAIL = "非法token";
    public static final String EMPTY_TOKEN_DETAIL = "token为空";
    public static final String EXPIRE_TOKEN_DETAIL = "过期token";
    public static final String EXITED_DETAIL = "账号已经退出";
    public static final String OTHER_DETAIL = "其他异常";
    public static final String NOT_FOUND_USER = "用户不存在，请注册";

    // 用户默认密码
    public static final String DEFAULT_PASSWORD = "12345";

    // 用户默认头像 存储在前端项目本地目录
    public static final String DEFAULT_AVATAR = "avatar.jpg";

    // 默认banner图片
    public static final String DEFAULT_BANNER = "banner.jpg";
    // 默认category图片
    public static final String DEFAULT_CATEGORY = "category.png";
    // 默认goods封面图片
    public static final String DEFAULT_GOODS = "goods.jpg";
    public static final List<String> DEFAULT_GOODS_LIST =
            Arrays.asList(DEFAULT_GOODS,DEFAULT_GOODS,DEFAULT_GOODS,DEFAULT_GOODS);

    // 默认hot图片
    public static final String DEFAULT_HOT = "hot.jpg";

    // 展示给前端的日期格式
    public static final String DATE_FORMAT_DEFAULT = "yyyy-MM-dd HH:mm:ss";
    public static final String DATE_FORMAT_SHORT = "yyyy-MM-dd";
    public static final String DATE_FORMAT_TIME_ONLY = "HH:mm:ss";

    public static final List<String> DEFAULT_IMAGE =
            Arrays.asList(DEFAULT_AVATAR, DEFAULT_BANNER, DEFAULT_CATEGORY, DEFAULT_GOODS);

    public static final long JWT_EXPIRE_TIME = 1000 * 60 * 60 * 2; // token过期时间 2小时
}
